package com.kc.business.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * 商家订单
 */
@Data
@Table(name = "kc_business_order")
public class BizBusinessOrder {
    @Id
    /*主键id*/
    private Integer id;
    /*订单号*/

    private String orderSn;
    /*商家id*/
    private Integer businessId;
    /*订单金额*/
    private Double orderMoney;
    /*优惠券金额*/
    private Double couponMoney;
    /*优惠券id*/
    private String couponId;
    private String createTime;
    /*状态*/
    private Integer status;
    /*实际支付金额*/
    private Double payMoney;
    /*用户id*/
    private Integer userId;
    /*订单确认时间*/
    private String confirmDate;
    /*订单支付时间*/
    private String payDate;
    /*未经处理的状态，用于记录用户申请退款前的状态*/
    private Integer rawStatus;
    /*退款原因*/
    private String refundReason;
    /*退款备注*/
    private String refundRemark;
    /*退款时间*/
    private String refundTime;
    /*退款回调数据*/
    private String refundPayData;
    /*退款申请时间*/
    private String refundApplyDate;
    /*退款编号*/
    private String refundNo;
    private String refundConfirmDate;
    /*订单确认时间，到日*/
    private String orderConfirmDay;
    /*订单确认时间，到月*/
    private String orderConfirmMonth;
    /*订单下商品数量*/
    private Integer orderGoodsNum;
    /*订单下商品名称*/
    private String orderGoodsName;
    /*订单备注*/
    private String remark;
    /*退款申请拒绝原因*/
    private String refuseReason;
    /*退款申请拒绝备注*/
    private String refuseRemark;
    /*退款申请拒绝凭证*/
    private String refuseImage;
    /*退款状态*/
    private Integer refundStatus;
    /*实际到账金额*/
    private BigDecimal actualReceivedAmount;
    /*删除标识*/
    @JsonIgnore
    private Integer isDeleted = 0;
    /*评论ID，商家中心查看订单评论使用*/
    private Integer commentId;
    private String transactionId;
    public BizBusinessOrder(){}
    public BizBusinessOrder(String orderSn, Integer businessId, Double orderMoney, Double couponMoney, String couponId, Integer status, Double payMoney) {
        this.orderSn = orderSn;
        this.businessId = businessId;
        this.orderMoney = orderMoney;
        this.couponMoney = couponMoney;
        this.couponId = couponId;
        this.status = status;
        this.payMoney = payMoney;
    }


}
